/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Common;

/**
 *
 * @author Kyle
 */
public class Dump
{
    String Memory[];

    public Dump(String[] mem)
    {
        Memory = mem;
    }

    public void PrintMemoryDump()
    {
        int j =0, l=0;
        for (int i = 0; i < 64; i++)
        {
            System.out.printf("%03X ",j);
            for(int k = 0; k < 16; k++)
            {
                if(Memory[l] != null)
                {
                    System.out.printf(Memory[l]+ " ");
                }
                else
                {
                    System.out.printf("0000 ");
                }
                l++;
            }
            System.out.printf("\n");
            j += 16;
        }
    }
}
